package com.jiepos.mpos.inter.intopieces.dto;

import java.io.Serializable;

import com.jiepos.mpos.common.constant.ExceptionConstant;

/**
 * @ClassName: ResponseDTO
 * @Description: 对外通道应答实体
 * @author 孙永
 * @date 2018年2月11日 下午4:52:34
 */
public class ResponseDTO implements Serializable{
	
	private static final long serialVersionUID = 3136446928938145253L;

	/** 应答码*/
	private String rsp_code;
	
	/** 应答信息*/
	private String rsp_msg;
	
	/** 应答密文*/
	private String data;

	public String getRsp_code() {
		return rsp_code;
	}

	public void setRsp_code(String rsp_code) {
		this.rsp_code = rsp_code;
	}

	public String getRsp_msg() {
		return rsp_msg;
	}

	public void setRsp_msg(String rsp_msg) {
		this.rsp_msg = rsp_msg;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}
	
	public ResponseDTO(){
		this.rsp_code = ExceptionConstant.MER_SUCCESS.getCode();
		this.rsp_msg = ExceptionConstant.MER_SUCCESS.getMessage();
	}

	@Override
	public String toString() {
		return "{rsp_code=" + rsp_code + ", message=" + rsp_msg + ", data=" + data + "}";
	}
	
}
